<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
onLaunch(() => {
  // 获取右上角胶囊的位置
  const res = uni.getMenuButtonBoundingClientRect()
  // 缓存到本地
  let MenuInfo = uni.getStorageSync('MenuButton') || ""
  if (!MenuInfo) {
    uni.setStorageSync('MenuButton', res)
  }
});
onShow(() => {

});
onHide(() => {

});
</script>
<style></style>
